package com.zxy.ziems.server.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zxy.ziems.server.domain.Resource;
import com.zxy.ziems.server.domain.RoleResourceRel;
import com.zxy.ziems.server.dto.ResourceTree;

import java.util.List;

public interface RoleResourceRelService extends IService<RoleResourceRel> {

    List<ResourceTree> listByRoleId(String roleId);

    List<ResourceTree> listByRoleId(List<String> roleIdList);

    Integer deleteByCondition(QueryWrapper<RoleResourceRel> query);

    List<ResourceTree> getAllResourceTree();

    List<Resource> listByRoleIds(List<String> roleIdList);

    List<RoleResourceRel> roleResourceRelListByRoleIds(List<String> roleIdList);

    List<RoleResourceRel> roleResourceRelListByRoleId(String roleId);
}
